package com.hp.easyBuy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_news")
public class TNews {

  @TableId(type = IdType.AUTO)
  private long newsid;
  private String newtitle;
  private long newstype;
  private java.sql.Timestamp newstime;
  private String newscontent;


  public long getNewsid() {
    return newsid;
  }

  public void setNewsid(long newsid) {
    this.newsid = newsid;
  }


  public String getNewtitle() {
    return newtitle;
  }

  public void setNewtitle(String newtitle) {
    this.newtitle = newtitle;
  }


  public long getNewstype() {
    return newstype;
  }

  public void setNewstype(long newstype) {
    this.newstype = newstype;
  }


  public java.sql.Timestamp getNewstime() {
    return newstime;
  }

  public void setNewstime(java.sql.Timestamp newstime) {
    this.newstime = newstime;
  }


  public String getNewscontent() {
    return newscontent;
  }

  public void setNewscontent(String newscontent) {
    this.newscontent = newscontent;
  }

  @Override
  public String toString() {
    return "TNews{" +
            "newsid=" + newsid +
            ", newtitle='" + newtitle + '\'' +
            ", newstype=" + newstype +
            ", newstime=" + newstime +
            ", newscontent='" + newscontent + '\'' +
            '}';
  }
}
